import myRequest from '@/api/Request.js'
import {wave_DEVELOP} from "@/api/BaseUrl.js";

/**
 * 获取 ${tableComment} 详情
 */
export const get${humpName}Detail = (params) => {
    return myRequest({
        url: ${serviceName} + "/${ignoreFirstHumpName}/detail",
        method: 'get',
        params
    })
}

/**
 * 新增 ${tableComment}
 */
export const save${humpName} = (data) => {
    return myRequest({
        url: ${serviceName} + "/${ignoreFirstHumpName}/save",
        method: 'post',
        data
    })
}

/**
 * 修改数据 ${tableComment}
 */
export const update${humpName} = (data) => {
    return myRequest({
        url: ${serviceName} + "/${ignoreFirstHumpName}/update",
        method: 'post',
        data
    })
}

/**
 * 获取 ${tableComment} 列表
 */
export const get${humpName}List = (params) => {
    return myRequest({
        url: ${serviceName} + "/${ignoreFirstHumpName}/list",
        method: 'get',
        params
    })
}

/**
 * 获取 ${tableComment} 分页
 */
export const get${humpName}Page = (params) => {
    return myRequest({
        url: ${serviceName} + "/${ignoreFirstHumpName}/page",
        method: 'get',
        params
    })
}

/**
 * 根据ids 删除/批量删除 ${tableComment}
 */
export const remove${humpName} = (ids) => {
    return myRequest({
        url: ${serviceName} + "/${ignoreFirstHumpName}/remove",
        method: 'post',
        params: {ids}
    })
}

